﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;
using DataLoader.UI.Misc;
using DataLoader.UI.ViewModels;
using DataLoader.UI.Views;
using Microsoft.Practices.Unity;

namespace DataLoader.UI
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        protected override void OnStartup(StartupEventArgs e)
        {
            RegisterTypes();           
            MainView mainView = TypeContainer.Instance.Resolve<MainView>();
            mainView.Show();
        }


        private void RegisterTypes()
        {
            TypeContainer.Register();
        }
    }
}
